<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="demo/layout/head :: head(~{::title}, ~{::link})">
    <title>页面布局</title>
    <link rel="stylesheet" th:href="@{/css/index.css}">
    <link rel="stylesheet" th:href="@{/css/test.css}">
</head>
<body>
<div>
    <!--引入布局文件中的片段（th:include 放在当前标签内部）-->
    <div th:insert="demo/layout/footer :: copyright"></div>
    <!--引入布局文件中的片段（th:replace 替换当前标签）-->
<!--    <div th:replace="demo/layout/footer :: copyright"></div>-->
</div>
</body>
</html>